package com.activities;

import com.main.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class Share extends Activity {
	
	public void onCreate (Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		//TODO: implement this method.
		
	}
	
	@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.main_options_menu, menu);
        return true;
    }
    
	@Override
    public boolean onMenuItemSelected(int featureId, MenuItem item) {
        switch(item.getItemId()) {
        case R.id.settings:
        	MyActivity.onCreateNewActivity(this, MyActivity.SETTINGS);
            return true;
        case R.id.close:
        	MyActivity.onCreateNewActivity(this, MyActivity.CLOSE_APP);
            return true;
        }
        return super.onMenuItemSelected(featureId, item);
    }
}
